//
//  NewOrderView.h
//  OrderSeat
//
//  Created by 王威 on 13-12-24.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EGORefreshTableHeaderView.h"

@class MyOrderViewDataSource;
@class MyOrderViewController;
@interface MyOrderView : UIView<UIScrollViewDelegate,EGORefreshTableDelegate>

@property (assign, nonatomic) OrderType orderType;
@property (assign, nonatomic) BOOL reloading;
@property (assign, nonatomic) BOOL moreLoading;
@property (strong, nonatomic) UITableView *orderTable;
@property (strong, nonatomic) EGORefreshTableHeaderView *refreshHeaderView;

@property (strong, nonatomic) MyOrderViewController *orderVC;
@property (strong, nonatomic) MyOrderViewDataSource *dataSource;

- (id)initWithFrame:(CGRect)frame andOrderType:(OrderType)orderType;

@end

@interface MyOrderViewDataSource : BaseDataSource<UITableViewDelegate,UITableViewDataSource>

@property (assign, nonatomic) int pageNumber;
@property (strong, nonatomic) NSMutableArray *orderList;
@property (strong, nonatomic) MyOrderView *view;

- (void)fetchNewOrder;

@end
